<?php
return array(
	'attributeLabels' => array(
		'create_time' => '发布时间'
	),
	
	'rules' => array(
		array('goods_id', 'required'),
	),
	
	'cascade' => array(
		'profile',
	),
	
	'relations' => array(
		'profile' => array(ActiveRecord::HAS_ONE, 'GoodsAdvisoryProfile', 'object_id'),
		'goods' => array(CActiveRecord::BELONGS_TO,'Goods','goods_id'),
	),
	
	'behaviors' => array(
		'frontUrl' => array(
			'class' => 'coms.behaviors.FrontBehavior',
			'route' => 'mall/advisory',
		),
	),
	
	'tableName' => 'goods_advisory',
	
	'_import' => array(
		array('*', 'models.ContentBase//*'),
	),
);